import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://kns.cnki.net/kns8s/defaultresult/index?korder=&kw=")
time.sleep(3)
driver.find_element("xpath", "//input[@id='txt_search']").send_keys("爬虫")
driver.find_element("xpath", "//input[@class='search-btn']").click()

while True:
    time.sleep(3)
    tr_list = driver.find_elements("xpath", "//table[@class='result-table-list']/tbody/tr")
    for tr in tr_list:
        data = [td.text for td in tr.find_elements("xpath", ".//td")]
        print(data)
    try:
        driver.find_element("xpath", "//a[@id='PageNext']").click()
    except:
        input()